class person:
    name = "123"

    class sex:
        sextype = 'nali'


p = person.sex().sextype
print(p)